package cn.learn.designpattern.strategy.algorithm;


import cn.learn.designpattern.strategy.PriceRegion;
import cn.learn.designpattern.strategy.SalePrice;

import java.math.BigDecimal;

/**
 * 超级会员的计算方法
 * @author huangyezhan
 * @date 2018/11/20-22:50
 */

@PriceRegion(min=20000,max=30000)
public class SuperVip implements SalePrice {
    @Override
    public BigDecimal salePrice(BigDecimal orgnicPrice) {
        return orgnicPrice.multiply(new BigDecimal("0.8"));
    }
}
